import request from '@/utils/request'

//获取分类页数据
export const getSortList = (params) => {
  return request.post('/service/rankCategoryList', params)
}
//详情数据
export const rankDetail = (params) => {
  return request.post('/service/rankDetail', params)
}

//我的页面
export const getrankPage = (params) => {
  return request.post('/service/rankPage', params)
}



export function getTab(params) {
  return request.post('/service/home', params)
}
//轮播图 接口

export function getBan(params) {
  return request.post('/service/carouselList', params)
}

//分类排名接口
export function getClassList(params) {
  return request.post('/service/rankPage', params)
}
//视频接口
export function getVudioList(params) {
  return request.post('/service/articlePage', params)
}

//首页详情数据接口
export function getDetailList(params) {
  return request.post('/service/rankDetails', params)
}
export function getHomeAd(params) {
  return request.post('/service/homeAd', params)
}
//搜索页数据
export function getSearchList(params) {
  return request.post('/service/hotList', params)
}
// export function getHomeAd(params){
//   return request.post('/service/homeAd',params)
// }
// //搜索页数据
// export function getSearchList(params) {
//   return request.post('/service/hotList', params)
// }
//首页详情类型接口
export function getDropList(params) {
  return request.post('/service/rankDropList', params)
}


//消息页面接口
export function getMessagePage(params) {
  return request.post('/service/messagePage', params)
}

// export function getDropList(params) {
//   return request.post('/service/rankDropList', params)
// }

//点击搜索接口
export function getClickSearchList(params) {
  return request.post('/service/search', params)
}
//输入框事件接口
export function getChangeList(params) {
  return request.post('/service/searchTips', params)
}
